﻿using System.Windows;
using DataInterpolator.Properties;

namespace DataInterpolator.View
{
   /// <summary>
   /// Description for DatabaseWindow.
   /// </summary>
   public partial class ExportInterpolationWindow : Window
   {
      /// <summary>
      /// Initializes a new instance of the DatabaseWindow class.
      /// </summary>
      public ExportInterpolationWindow()
      {
         InitializeComponent();

         Loaded += (s, e) =>
         {
            WindowState = Settings.Default.DatabaseWindowSize.State;
            Settings.Default.DatabaseWindowVisible = true;
         };

         Closed += (s, e) =>
         {
            Settings.Default.DatabaseWindowSize.State = WindowState;
            Settings.Default.DatabaseWindowVisible = false;
         };
      }
   }
}